﻿@model DevWeb.Biztalk.DeploymentSettings.WebUI.Models.IntegrationViewModel

<script src="~/Scripts/jquery-1.7.1.min.js"> </script>
<script src="~/Scripts/jquery.validate.min.js"> </script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"> </script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Edit Integration @Model.Name</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ProductUpgradeCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ProductUpgradeCode)
            @Html.ValidationMessageFor(model => model.ProductUpgradeCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CreateDateTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreateDateTime)
            @Html.ValidationMessageFor(model => model.CreateDateTime)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.VersionCount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VersionCount)
            @Html.ValidationMessageFor(model => model.VersionCount)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>